import editor from './editor'
import upload from './upload'

export default {

  data () {
    return {
    }
  },

  props: ['data'],

  components: { editor, upload },

  methods: {

    save () {
      let vm = this
      if(this.$refs.editor){
        this.param.html = this.$refs.editor.getAllHtml()
      }
      this.$emit('save',vm.param)
    },

    close () {
      this.$emit('close')
    }

  }
}
